//
//  HttpBusiManager.h
//  qwm
//
//  Created by kevin on 2023/3/23.
//

#import <Foundation/Foundation.h>
#import "JMPHttpRequest.h"
#import "JMPHttpResponse.h"

#define HTTPManager (HttpBusiManager.Instance)
@interface HttpBusiManager : NSObject
+(instancetype)Instance;
#pragma mark -上传文件-头像图片
//-(void)uploadFile:(NSString*)resUrl
//              Dic:(NSDictionary*)resBodyDic
//              Img:(UIImage*) imageData
//          success:(void (^)(JMPHttpResponse *response, NSInteger resStatusCode))success
//          failure:(void (^)(JMPHttpResponse *response, NSInteger resStatusCode,NSError *error))failure;
#pragma mark -请求后台操作
-(void)sendRequestHttpDataUrl:(NSString*)resUrl
                       Dic:(NSDictionary*)resBodyDic
                 resMethod:(JMP_HTTP_METHOD)resMethod
                   success:(void (^)(JMPHttpResponse *response, NSInteger resStatusCode,NSString *errorMessage))success
                   failure:(void (^)(JMPHttpResponse *response, NSInteger resStatusCode,NSError *error))failure;
-(void)sendRequestHttpDataUrl:(NSString*)resUrl
                          Dic:(NSDictionary*)resBodyDic
                    resMethod:(JMP_HTTP_METHOD)resMethod
          isCheckReachability:(BOOL)isCheckReachability
                      success:(void (^)(JMPHttpResponse *response, NSInteger resStatusCode,NSString *errorMessage))success
                      failure:(void (^)(JMPHttpResponse *response, NSInteger resStatusCode,NSError *error))failure;
#pragma mark- 保存、获取、删除token
-(void) saveToken:(NSString *)token;
-(NSString*) getToken;
-(BOOL)hasToken;
-(void)clearToken;

//#pragma mark- 校验会员过期时间
//-(void)checkUserVIPTime;
//-(void)checkUserVIPTime:(BOOL)isCheckReachability;
//#pragma mark- 获取个人VIP信息
//-(void)getUserVIPInfo;
//-(void)getUserVIPInfo:(BOOL)isCheckReachability;
@end
